package com.px.chapter_Dec_1.textt;

 class Mankind {
     int sex;
     int salary;


     Mankind(int sex, int salary) {
        this.sex = sex;
        this.salary = salary;
    }
    public void manOrWorman(){
        System.out.println((sex==1)?"man":"woman");
    }
    public void c(){
        System.out.println((salary==0)?"no job":"job");
    }

    public Mankind() {
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public int getSalary() {
        return salary;
    }

    public void setSalary(int salary) {
        this.salary = salary;
    }
    public void ccc(){
        System.out.println("这个是父类的方法");
    }
}
